score = [[99,89,79,69],[98,88,78,68,58],[97,87,77]]
#班号
i = 1
for s in score:#s表示每个班级的列表
    sum = 0
    for a in s:#每个班级中学生的分数
        sum = sum + a
    print('%d班的总成绩是%d'%(i,sum))
    #班号自增
    i += 1